//**********************************************************************************
//minOfThree.java
//
//Name: Gabriel Martins	de	Castro
//Class:	COMSC	110L.51
//Date: 10/08/2014
//Instructor: Dr.	Chunyan Bai
//
//Purpose: Simple program which determine the minimmun of three numbers
//***********************************************************************************

import java.util.Scanner;
//Class
public class minOfThree
{
	public static void main(String[]	args)//main	method
	{
      System.out.println("Please enter three numbers : ");
      Scanner input = new Scanner(System.in);
      int a = input.nextInt();
      int b = input.nextInt();
      int c = input.nextInt();
      //if statement - check your current age and decide wheter you can drink or not
      
      if(a < b)
      {
         if(a < c)
         {
            if(b < c)
               System.out.println(a + " < " + b + " < " + c); //a<b a<c b<c
            else
               System.out.println(a + " < " + c + " < " + b);//a<b a<c c<b
         }
         else
         {
            if(b < c)
               System.out.println(b + " < " + c + " < " + a);//a<b c<a b<c -- Erro
            else
               System.out.println(c + " < " + a + " < " + b);//a<b c<a c<b
         }
      }
      else
      {
         if(a < c)
         {
            if(b < c)
               System.out.println(b + " < " + a + " < " + c);//b<a a<c b<c
            else
               System.out.println(a + " < " + c + " < " + b); //b<a a<c c<b -- Erro
         }
         else
         {
            if(b < c)
               System.out.println(b + " < " + c + " < " + a);//b<a c<a b<c
            else
               System.out.println(c + " < " + b + " < " + a);//b<a c<a c<b
         }
      }
   }
}
